package org.cxfexample.helloworldrestful.basic;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


@Path("/resultfulbasic/")
@Produces("application/xml")
public class HelloWorldImpl implements HelloWorld {

	private Log logger = LogFactory.getLog(this.getClass());
	
	@GET
	@Path("/sayhi/{name}")
	public String sayHi(@PathParam("name") String name) {
		    this.logger.debug("sayHi called");
	        return "Hello " + name;
	}

}
